<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var arr = ['icon', 'inline', 'font', 'inline', 'navigator', 'auto', 'font', 'inline', 'block', 'count', 'transform', 'translate'];
        var result = [];
        for (var i = 0; i < arr.length; i++) {
            var currentWord = arr[i];
            var findedIdx = - 1;
            for (var j = 0; j < result.length; j++) {
                var resultTtem = result[j];
                if (currentWord === resultTtem[0]) {
                    findedIdx = j;
                    break;
                }  
            }
            if (findedIdx !== -1) {
                result[findedIdx][1]++;
            } else {
                var arrItem = [currentWord,1];
                result.push(arrItem);
            }  
        }
        console.log(result);
    </script>
</body>
</html>